package com.yanqu.road.entity.activity.yearMaster;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_year_master")
public class UserYearMasterData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "用户id")
    private long userId;

    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;

    @FieldTypeAnnotation(desc = "体力值")
    private int physicalStrength;

    @FieldTypeAnnotation(desc = "积分")
    private long score;

    @FieldTypeAnnotation(desc = "格子排列")
    private String paint = "";

    @FieldTypeAnnotation(desc = "高级场格子排列")
    private String highPaint = "";

    @FieldTypeAnnotation(desc = "急速场格子排列")
    private String fastPaint = "[]";

    @FieldTypeAnnotation(desc = "体力值变动最后更新时间")
    private long strengthTime;

    @FieldTypeAnnotation(desc = "最后更新时间")
    private long lastUpdateTime;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        if (this.lastUpdateTime != lastUpdateTime) {
            this.lastUpdateTime = lastUpdateTime;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }


    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        if (this.score != score) {
            this.score = score;
            setUpdateOption();
        }
    }


    public String getPaint() {
        return paint;
    }

    public void setPaint(String paint) {
        if (!this.paint.equals(paint)) {
            this.paint = paint;
            setUpdateOption();
        }
    }

    public int getPhysicalStrength() {
        return physicalStrength;
    }

    public void setPhysicalStrength(int physicalStrength) {
        if (this.physicalStrength != physicalStrength) {
            this.physicalStrength = physicalStrength;
            setUpdateOption();
        }
    }

    public long getStrengthTime() {
        return strengthTime;
    }

    public void setStrengthTime(long strengthTime) {
        if (this.strengthTime != strengthTime) {
            this.strengthTime = strengthTime;
            setUpdateOption();
        }
    }

    public String getHighPaint() {
        return highPaint;
    }

    public void setHighPaint(String highPaint) {
        if (!this.highPaint.equals(highPaint)) {
            this.highPaint = highPaint;
            setUpdateOption();
        }
    }

    public String getFastPaint() {
        return fastPaint;
    }

    public void setFastPaint(String fastPaint) {
        if (fastPaint == null) {
            return;
        }
        if (!this.fastPaint.equals(fastPaint)) {
            this.fastPaint = fastPaint;
            setUpdateOption();
        }
    }
}
